package com.finance.borrower;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: Apollo
 * @Date: 2021/4/10
 * @Description: 实名认证
 */
@Entity
@Table(name = "certification_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CertificationInfo implements Serializable {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 标识
     */
    private String code;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 是否删除 1:否 2:是
     */
    private Integer isDelete;

    /**
     * 身份证正面照片
     */
    private String theFrontSideOfIdCard;

    /**
     * 身份证反面照片
     */
    private String theBackSideOfIdCard;

    /**
     * 抓拍照片
     */
    private String capturePhotos;

    /**
     * 身份证号
     */
    private String IdNumber;

    /**
     * 姓名
     */
    private String name;

    /**
     * 是否真实 1:通过 2:不通过
     */
    private Integer isTrue;

    /**
     * 借款人信息标识
     */
    private String borrowerInfoCode;









    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CODE = "code";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_THE_FRONT_SIDE_OF_ID_CARD = "the_front_side_of_id_card";

    public static final String COL_THE_BACK_SIDE_OF_ID_CARD = "the_back_side_of_id_card";

    public static final String COL_CAPTURE_PHOTOS = "capture_photos";

    public static final String COL_ID_NUMBER = "IdNumber";

    public static final String COL_NAME = "name";

    public static final String COL_IS_TRUE = "is_true";

    public static final String COL_BORROWER_INFO_CODE = "borrower_info_code";


}